package lab02.Test36;

<<<<<<< HEAD
public class Undergraduate extends Student {
    String calGrade(){
        double avg = calAverage();
        if (avg >= 80&& avg<=100)
            grade="优秀";
       else if (avg>=70&& avg<=80)
            grade="良好";
       else if (avg >=60&& avg<=70)
            grade="一般";
      else   if (avg>=50&& avg<=60)
=======

public class Undergraduate extends Student {
    @Override
    String calGrade() {

        String grade="";
        double avg=average();

        if(avg>=80&&avg<=100)
            grade="优秀";
        else if(avg>=70&&avg<80)
            grade="良好";
        else if(avg>=60&&avg<70)
            grade="一般";
        else if(avg>=50&&avg<60)
>>>>>>> 50ca08f6b9b89216641cb11ef9adb6e22dd31576
            grade="及格";
        else
            grade="不及格";
        return grade;
    }
<<<<<<< HEAD
=======

>>>>>>> 50ca08f6b9b89216641cb11ef9adb6e22dd31576
}
